Skip to content

ci: fix invalid 'ctest --build' invocation#68

Merged
brtnfld merged 1 commit into
HDFGroup:masterfrom
brtnfld:fix-ctest-build-typo
Jul 2, 2026
Merged

ci: fix invalid 'ctest --build' invocation#68
brtnfld merged 1 commit into
HDFGroup:masterfrom
brtnfld:fix-ctest-build-typo

Conversation

@brtnfld

@brtnfld brtnfld commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

The "Run API tests" step in `main.yml` calls `ctest --build . --parallel 2 -C ... -V`, but `--build` is a `cmake` flag, not a `ctest` one:

```
CMake Error: Unknown argument: --build
CMake Error: Run 'ctest --help' for all supported options.
```

The actual build already happens in the preceding "Build/Install" step via `cmake --build`. This was failing the `Ubuntu GCC DBG` job outright on every run, and - via this workflow's fail-fast matrix strategy - cancelling every other job in the same run before they could report their own real status. Confirmed this includes the `-Werror` builds, which actually compile cleanly (100% of targets built) when allowed to run to completion.

Test plan

  • Ran the corrected command locally against the syntax (ctest --parallel 2 -C <mode> -V) to confirm it's valid ctest usage.
  • Would appreciate a maintainer confirming this fixes the Ubuntu GCC DBG job and lets the rest of the matrix report real results.

--build is a cmake flag, not a ctest one ("CMake Error: Unknown argument:
--build"); the actual build already happens in the preceding step via
cmake --build. This was failing the "Ubuntu GCC DBG" job outright, and
via this workflow's fail-fast matrix strategy, cancelling every other
job in the run (including the -Werror builds, which otherwise compile
cleanly) before they could report their own real status.
@brtnfld brtnfld merged commit 7ddf36f into HDFGroup:master Jul 2, 2026
0 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant